

console.log("React 项目的主入口 文件 - webpack - WH2217  ")

// import {word, msg } from './utils'
// import NotFound from './images/404.png'

// import {word, msg } from '~'
// import NotFound from '@/images/404.png'

// const app = document.getElementById("app")

// app.innerHTML += "<h2>Hello React </h2>"    
//     + "<h2>Hello Webpack  </h2>"
//     + `<h2>${word}    </h2>`
//     + `<h2>${msg}    </h2>`
//     + `<img src='${NotFound}'/>`


// import './styles/style.css'
// import './styles/index.scss'
// import './styles/demo.less'

// import './styles/index.scss'
// console.log(DESCRIPTION)




// React 版本 18.2.0 
import React from 'react'
import {createRoot}  from 'react-dom/client'
import MyApp from '@/views/index'
const rootEle = document.getElementById("app")   // 根节点 
createRoot(rootEle).render( <MyApp />  )

import './styles/index.scss'


// React 版本 16.0 
// import React from 'react'
// import ReactDOM from 'react-dom'
// import MyApp from '@/views/index'
// ReactDOM.render(
//     <MyApp/>,
//     document.getElementById('app')
// )



